<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="java.util.ArrayList"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="java.util.List,com.hqyj.ssm.dept.entity.Dept" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/reset.css" />
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/goodsList.css" />
<style type="text/css">
</style>
</head>
<body>
	<div class="contain">
		<div class="header"></div>
		<div class="main">
		 <%@ include file="leftnav.jsp" %>
			<div class="right-cont">
				<div class="rightHead">
					<p class="rightH_p">部门列表</p>
				</div>
				<div class="rightBody">
					<!--2学生列表-->
					<div class="goodsList_div">
						<table id="mytable" border="">
							<tr class="table-head">
								<th>部门ID</th>
								<th>部门名称</th>
							</tr>
							<c:forEach items="${depts}" var="dept" varStatus="a">
								<tr class="table-list">
									<td>${dept.deptno}</td>
									<td>${dept.deptname}</td>
									<td class='edition'>
									 <a href="${pageContext.request.contextPath}/getDept.do?id=${dept.deptno}"class="eiditB">编辑</a>
									 <a onClick="return confirm('确认要删除？')" href="${pageContext.request.contextPath}/delete.do?id=${dept.deptno}" class="deleteB">删除</a></td>
								</tr>
							</c:forEach>
						</table>
					</div>
				</div>
				<div class="rightFoot">
					<!--脚注 -->
				</div>
			</div>
		</div>
	</div>
</body>

</body>
</html>